<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4" >
<head th:replace="~{fragments/header :: headInfo}">

</head>

<body>
<div th:replace="~{fragments/header :: header}"></div>
<style>
.loginSet{
     background-color: #fff;
     margin-top:6.0em;
     margin-bottom:6.0em;
}
.main_card{
     background:url(/background.jpg);
     background-repeat:no-repeat;
     background-size:100% 100%;
}
.loginTitle{
     border-bottom: 2px solid #ee7700;
     
     text-align:center;
}
</style>
<div class="blog-content-container main_card">
<div class="container">
    <div class="row">
    <div class="col-md-3 col-md-offset-8 col-xs-8 col-xs-offset-2 loginSet" >
		<form  th:action="@{/login}" method="post">
			<h2 class="loginTitle">登录</h2>
			<div class="form-group">
				<label for="username" class="col-form-label">账号</label>
				<input type="text" class="form-control" id="username" name="username" maxlength="50" placeholder="请输入账号">
	 
			</div>
			<div class="form-group">
				<label for="password" class="col-form-label">密码</label>
				<input type="password" class="form-control" id="password" name="password" maxlength="30" placeholder="请输入密码" >
			</div>
			<div class="form-group">
				 <input type="checkbox" name="remember-me"> 记住我
			</div>
			<div class="form-group" th:if="${param.error}">                    
			    <p th:if="${session.SPRING_SECURITY_LAST_EXCEPTION}"> </p>                    
			    <p th:text="${session.SPRING_SECURITY_LAST_EXCEPTION.message}"></p>                   
			 </div>
			<div class="form-group">
				<button type="submit" class="btn btn-warning btn-lg btn-block">登录</button>
			</div>
		</form>
    </div>
    </div>
</div>
</div> <!-- /container -->
<div th:replace="~{fragments/footer :: footer}">...</div>
</body>
</html>
